package cc.ucanuup.service.base.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import cc.ucanuup.common.jpa.BaseEntity;

/**
 * Description: TODO[描述该类概要功能介绍]
 *
 * @author guwenbin
 * @date 2018年2月1日
 * @version 1.0
 */
@Table(name="TBUP_MENUS")
@Entity
public class UpMenus  extends BaseEntity{

	/**
	 * Description:[字段功能描述]
	 */
	private static final long serialVersionUID = 1L;
	/**菜单名称*/
	@Column(name="MENU_NAME")
	private String menuName;
	/**菜单描述*/
	@Column(name="MENU_DESC")
	private String menuDesc;
	/**菜单连接*/
	@Column(name="MENU_LINK")
	private String menuLink;
	/**菜单权限字段*/
	@Column(name="MENU_PERMISSION")
	private String menuPermission;
	/***/
	@Column(name="SYSTEM_TYPE")
	private String systemType;
	/**自关联 父ID*/
	@Column(name="FID")
	private String fid;
	/**排序顺序*/
	@Column(name="ORDER_LEVEL")
	private Integer orderLevel;
	/**菜单级别 0 顶级 1 二级 2 三级*/
	@Column(name="MENU_LEVEL")
	private Integer menuLevel;
	/**图标，用于顶级菜单的图标 aswesome 图标*/
	@Column(name="MENU_ICON")
	private String menuIcon;
	/**使用状态 1启用 0失效*/
	@Column(name="STATUS")
	private Integer status;
	/**所属系统模块的ID  TB_SYSTEM 的主键*/
	@Column(name="SYSTEM_ID")
	private String systemId;
	@Column(name="PAGE_TYPE")
	private String pageType;

	public String getMenuName() {

		return menuName;
	}

	public void setMenuName(String menuName) {

		this.menuName = menuName;
	}

	public String getMenuDesc() {

		return menuDesc;
	}

	public void setMenuDesc(String menuDesc) {

		this.menuDesc = menuDesc;
	}

	public String getMenuLink() {

		return menuLink;
	}

	public void setMenuLink(String menuLink) {

		this.menuLink = menuLink;
	}

	public String getMenuPermission() {

		return menuPermission;
	}

	public void setMenuPermission(String menuPermission) {

		this.menuPermission = menuPermission;
	}

	public String getSystemType() {

		return systemType;
	}

	public void setSystemType(String systemType) {

		this.systemType = systemType;
	}

	public String getFid() {

		return fid;
	}

	public void setFid(String fid) {

		this.fid = fid;
	}

	public Integer getOrderLevel() {

		return orderLevel;
	}

	public void setOrderLevel(Integer orderLevel) {

		this.orderLevel = orderLevel;
	}

	public Integer getMenuLevel() {

		return menuLevel;
	}

	public void setMenuLevel(Integer menuLevel) {

		this.menuLevel = menuLevel;
	}

	public String getMenuIcon() {

		return menuIcon;
	}

	public void setMenuIcon(String menuIcon) {

		this.menuIcon = menuIcon;
	}

	public Integer getStatus() {

		return status;
	}

	public void setStatus(Integer status) {

		this.status = status;
	}

	public String getSystemId() {

		return systemId;
	}

	public void setSystemId(String systemId) {

		this.systemId = systemId;
	}

	public String getPageType() {

		return pageType;
	}

	public void setPageType(String pageType) {

		this.pageType = pageType;
	}

	@Override
	public boolean equals(Object obj){
		if(obj == null || getId() == null){
			return false;
		}else{
			UpMenus sp = (UpMenus)obj;
			if(getId().equals(sp.getId())){
				return true;
			}else{
				return false;
			}
		}
	}
}
